package guda.stark.dal.dao;

import guda.stark.dal.dataobject.RoleDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface RoleDAO {


    Long insert(RoleDO role);


    RoleDO getRoleById(Long roleId);


    boolean delRoleById(Long roleId);

    List<RoleDO> getRoleByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long roleId);

    List<RoleDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(RoleDO role);

}
